********************************************************************************
*   Title: master.do
* Purpose: Master do file for kinky paper replication file
* Authors: Qiping Xu, Eric Zwick
*     RAs: Tom (Tianfang) Cui, Laurence O'Brien, Harleen Kaur,
* 		   Francesco Ruggieri, Caleb Wroblewski, Ramiro Rossi
*    Date: 2024-05-02
********************************************************************************

* To initialize, define these environment variables:

* Environment variables 
global root "/path/to/root"
global localcodedir "$root"
global analysis "$root/data" 
global intermediate "$root/Intermediate" 
global modelout "$root/model/revision/out"

* Local directory
global dodir "$localcodedir"
global outputdir "$localcodedir/out"

display "$S_TIME  $S_DATE"

********************************************************************************
* Programs for Internal Environment
********************************************************************************
* Programs for internal environment.
do $dodir/programs_kinky.do

********************************************************************************
* Databuild Programs
********************************************************************************
do $dodir/make_kinky.do
main

********************************************************************************
* Production Code for Kinky Figures and Tables
********************************************************************************
do $dodir/draft_kinky.do
main

********************************************************************************
* Code for Online Appendix Tables and Figures
********************************************************************************
do $dodir/appendix_kinky.do
main


